package com.lottery.material.enumeration.transaction;

import com.lottery.material.enumeration.base.BaseEnum;
import lombok.Getter;

/**
 * Description：用户充值记录枚举类
 * Created by 朱正磊 on 2019-04-18 15:55
 */
@Getter
public enum UserBuyRecordEnum implements BaseEnum {

    // 支付类型：1：支付宝；2：微信；3：银行卡；4：财务后台手动充值
    PAY_TYPE_ALIPAY("PAY_TYPE", 1, "支付宝"),
    PAY_TYPE_WECHAT("PAY_TYPE", 2, "微信"),
    PAY_TYPE_BANK_CARD("PAY_TYPE", 3, "银行卡"),
    PAY_TYPE_ADMIN_RECHARGE("PAY_TYPE", 4, "财务后台手动充值"),

    // 订单状态：1：待付款；2：已付款
    ORDER_STATUS_TO_BE_PAID("ORDER_STATUS", 1, "待付款"),
    ORDER_STATUS_HAVE_BEEN_PAID("ORDER_STATUS", 2, "已付款"),

    //充值类别（1：加金币；2：减金币）
    BUY_TYPE_ADD("BUY_TYPE", 1, "加金币"),
    BUY_TYPE_SUB("BUY_TYPE", 2, "减金币"),
    ;

    private String code;
    private Object value;
    private String description;

    UserBuyRecordEnum(String code, Object value, String description) {
        this.code = code;
        this.value = value;
        this.description = description;
    }

    public static final String PAY_TYPE = "PAY_TYPE";
    public static final String ORDER_STATUS = "ORDER_STATUS";
    public static final String BUY_TYPE = "BUY_TYPE";

}
